<div class="reg-form">
	<form action="<?= site_url($this->uri->uri_string()); ?>" method="post"<?= $this->form_attribs; ?>><?php
		foreach ($this->items as $name => $item) {
			?><div class="item<?= !empty($item->require) ? ' require' : ''; ?>">
			<div class="error <?= !empty($item->error) ? 'block' : 'hidden'?>"><?= !empty($item->error) ? $item->error : ''; ?></div><?php
			if (!empty($item->label)) { ?><label for="<?= $name; ?>"><?= $item->label; ?></label><?php } ?>
			<?= $item->input; ?>
			</div><?php
		}
	?></form>
</div>
